package com.ruoyi.qywx.model.vo;

import com.ruoyi.common.utils.CollectionUtils;
import lombok.Getter;
import lombok.Setter;

import java.util.Collections;
import java.util.List;

/**
 * @author : hcl
 * @Date : 2023/8/11 09:27
 */
@Getter
@Setter
public class ContactTagGroupVo {
    private Long id;
    private String groupName;
    private List<TagVo> tags;

    public ContactTagGroupVo() {
    }

    public ContactTagGroupVo(Long id, String name) {
        this.id = id;
        this.groupName = name;
    }

    public List<TagVo> getTags() {
        return CollectionUtils.isEmpty(tags) ? Collections.emptyList() : tags;
    }
}
